package TimeImplont;


public class TimeTest {
	
	private static TimeTest timeTest = null;
	
	private TimeTest(){
		System.out.println("私有构造器.....");
	}
	
	public static TimeTest getInstance(){
		if( timeTest == null ){
			return new TimeTest();
		}
		return timeTest;
	}
	
	public static void getString(){
		System.out.print("创建字符串.....");
	}
	
	public static void main(String[] args) {
		TimeTest.getString();
    }
}

